﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CardType.aspx.cs" Inherits="WebSite.admin.product.CardType" %>
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
        <script src="../js/common.js" type="text/javascript"></script>
    <style>
     #ext-comp-1002
     {
         margin-top:-20px;
         }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="订单处理"  ShowHeader="true" >
              <Items>
         <ext:Panel ID="Panel1" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
                <ext:Label ID="Label2"  Width="90px"    runat="server" Text="&nbsp;&nbsp;输入关键字："></ext:Label>
                 <ext:TextBox runat="server" ID="txtKeywords"   MaxLength="100" Label="礼品卡类别" ></ext:TextBox>
                 <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server"  OnClick="btnSearch_Click"></ext:Button>
               </Items>
         </ext:Panel>
     </Items>
     
   </ext:SimpleForm>

      <ext:form ID="Form2" runat="server" BodyPadding="5px" 
            EnableBackgroundColor="true" Title="" ShowHeader="false" >
            <Rows>
                 <ext:FormRow ColumnWidths="20% 75% 5%">
                <Items>
                   <ext:TextBox runat="server" ID="txtCardTypeName"   ShowRedStar="true" Required="true"  MaxLength="100" Label="礼品卡名称" ></ext:TextBox>
                   <ext:TextBox runat="server" ID="txtCardTypeDescription" Required="true" ShowRedStar="true"   MaxLength="500" Label="卡描述" ></ext:TextBox>
                   <ext:Button ID="btnAdd" runat="server" Text="添加" ConfirmTarget="Parent"  
                        ValidateForms="Form2" OnClick="btnAdd_Click"   ></ext:Button>
                </Items>
            </ext:FormRow>
            </Rows>
      </ext:form>

         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="398px"  AllowPaging="false" 
                        ShowHeader="False" runat="server" EnableCheckBoxSelect="false" OnRowCommand="Grid1_RowCommand"   AllowSorting="true"    IsDatabasePaging="false" 
                        DataKeyNames="id" OnSort="Grid1_Sort" EnableRowNumber="True">
        <Columns>
       
            <ext:BoundField Width="200px" ColumnID="name" SortField="name" DataField="name" DataFormatString="{0}"
                HeaderText="卡名称" />
            <ext:BoundField Width="300px" ColumnID="Description" SortField="Description" DataField="Description" DataFormatString="{0}"
                HeaderText="卡描述" />
            <ext:BoundField Width="80px" DataField="AddTime" SortField="AddTime" DataFormatString="{0:yy-MM-dd}"
                HeaderText="添加时间" />
              <ext:LinkButtonField HeaderText="操作" Width="60px" ConfirmText="你确定要删除该记录吗？" ConfirmTarget="Top"
                CommandName="deleted" Text="[删除]" />

        </Columns>
    </ext:Grid>
    </form>
</body>
</html>
